RWTH - Mindstorms NXT Toolbox

NXT_StopProgram

Stops a specific program on the NXT Brick

Contents

Syntax

NXT_StopProgram()

NXT_StopProgram(handle)

Description

NXT_StopProgram() stops the current running embedded NXT Brick program.

NXT_StopProgram(handle) uses the given NXT connection handle. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system.

If no Bluetooth handle is specified the default one (COM_GetDefaultNXT) is used.

For more details see the official LEGO Mindstorms communication protocol.

Examples

   NXT_StopProgram();
   handle = COM_OpenNXT('bluetooth.ini','check');
   NXT_StopProgram(handle);

See also

NXT_StartProgram

Signature